package com.psfd.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *读者信息表
 * @author 撒旦
 * @since 2020-07-10
 */
public class ReaderInformation extends Model<ReaderInformation> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;//读者编号

    private String name;//读者姓名

    private String sex;//读者性别

    private String barcode;//条形码

    private String vocation;//读者类型

    private LocalDate birthday;//出生日期

    @TableField("paperType")
    private String paperType;//证件类型

    @TableField("paperNO")
    private String paperNO;//证件号码

    private String tel;//电话

    private String email;//Email地址

    @TableField("createDate")
    private LocalDateTime createDate;//录入时间

    private String operator;//操作员

    private String remark;//备注

    private Integer typeid;//读者类型编号


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBarcode() {
        return barcode;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }

    public String getVocation() {
        return vocation;
    }

    public void setVocation(String vocation) {
        this.vocation = vocation;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public String getPaperType() {
        return paperType;
    }

    public void setPaperType(String paperType) {
        this.paperType = paperType;
    }

    public String getPaperNO() {
        return paperNO;
    }

    public void setPaperNO(String paperNO) {
        this.paperNO = paperNO;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public LocalDateTime getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDateTime createDate) {
        this.createDate = createDate;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getTypeid() {
        return typeid;
    }

    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ReaderInformation{" +
        "id=" + id +
        ", name=" + name +
        ", sex=" + sex +
        ", barcode=" + barcode +
        ", vocation=" + vocation +
        ", birthday=" + birthday +
        ", paperType=" + paperType +
        ", paperNO=" + paperNO +
        ", tel=" + tel +
        ", email=" + email +
        ", createDate=" + createDate +
        ", operator=" + operator +
        ", remark=" + remark +
        ", typeid=" + typeid +
        "}";
    }
}
